package com.photoeditor.demo.model.image.emoji;

import com.common.base.ComponentContext;
import com.photoeditor.R;

import java.util.HashMap;

/**
 * Created by Administrator on 2017/7/13 0013.
 */

public class InsideStickerTool {

    public static final String[] STICKER_NAMES_EMOJI = ComponentContext.getContext().getResources().getStringArray(R.array.emoji_name);

    public static final String STICKER_PKG_NAME_EMOJI = "com.photolab.photoeditor.sticker.inside.emoji";
    public static final String STICKER_PKG_NAME_GIF = "com.photolab.photoeditor.sticker.gif";

    public static final String[] STICKER_PKG_NAMES = ComponentContext.getContext().getResources().getStringArray(R.array.sticker_pkg_name);

    public static final int[] BUTTON_RES_IDS = {R.drawable.ic_emoji,R.drawable.icon_sticker_gif};
    /**
     *包名只用作标识
     */
    //包名与分类图片id的映射
    public static HashMap<String, Integer> STICKER_BTN_ICON_MAP = new HashMap<>();

    static{
        for(int i = 0; i < STICKER_PKG_NAMES.length; i++){
            STICKER_BTN_ICON_MAP.put(STICKER_PKG_NAMES[i], BUTTON_RES_IDS[i]);
        }

    }

    //包名与图片名的映射
    public static HashMap<String, String[]> STICKER_NAME_ICON_MAP = new HashMap<>();

    static{
        STICKER_NAME_ICON_MAP.put(STICKER_PKG_NAME_EMOJI, STICKER_NAMES_EMOJI);
        STICKER_NAME_ICON_MAP.put(STICKER_PKG_NAME_GIF, new String[]{});
    }

}
